Prime minister Narendra Modi and Samajwadi Party (SP) President Akhilesh Yadav on Saturday accused each other of taking credit for the developmental projects in Uttar Pradesh ahead of the forthcoming assembly polls in the state which was scheduled to be held early next year.