Converted block to arraylist