added NullPointerException to withrdraw method