fixed error for "Can't use method return value in write context"