working for only one block