works..but stil gets an error