move timeout inside of success function
cleanup whitespace