added a shorter constructor