bug fixed with help from Robby