class method all won't work