fixing prototype property issues