fixed lives loop.. codewise