added pwerup input check