this code helped. thanks!