actually fixed undefined problem