changed senseless function