removed typecasts