add strict checking, remove console log