tweaking and beginning to generalise css