defining more functions