tidied up the linear block