variable checks added
travis test fixed