bugs removed

bugs removed in constructor