removed duplicate function! freed up 8 lines!