new function for specs