removed timeout function