try to change Collection to arraylist