fixed indentation
uhm, floor instead of ceil, can just use int now
only search for tell_end if we have tell_beg