changing weird string function thing
deleted old dead code