created function to handle parsing assignments