got rid of uneccesary assignment