add raise to notify user of invalid datatypes