adding timeout to get and size after 1 second